package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;

@Mapper
public interface UserMapper {
    User selectByOpenid(String openid);

    void insert(User user1);
    @Select("select * from user where id = #{userId};")
    User getById(Long userId);

    Integer getUserQuery(LocalDate localDate);

    Integer getUserSum(LocalDate localDate);
}
